﻿using FreeSql.DataAnnotations;
using IMES.Common.Dtos;
using System;
using System.Collections;
using System.ComponentModel.DataAnnotations;
using Org.BouncyCastle.Tls;
using System.Linq;
using System.Security.Principal;
using System.Text;
using System.Threading.Tasks;

namespace IMES.Common.Domain.DariusModel
{
    /// <summary>
    /// 权限表
    /// </summary>
    public class Permission:Audit
    {
        /// <summary>
        /// 权限ID (主键，自增，不可为空)
        /// </summary>
        [Column(IsIdentity = true, IsPrimary = true)]
        public int PermissionsId { get; set; }
        public string PermissionsName { get; set; }
        /// <summary>
        /// 链接
        /// </summary> 
        public string? URL { get; set; }
        /// <summary>
        /// 父级Id
        /// </summary>
        public int PerantId { get; set; }
        /// <summary>
        /// 是否可以查看 (可空)
        /// </summary>
        public bool? CanView { get; set; } = true;

        /// <summary>
        /// 是否可以添加 (可空)
        /// </summary>
        public bool? CanAdd { get; set; } = true;

        /// <summary>
        /// 是否可以编辑 (可空)
        /// </summary>
        public bool? CanEdit { get; set; } = true;

        /// <summary>
        /// 是否可以删除 (可空)
        /// </summary>
        public bool? CanDelete { get; set; } = true;
    }
}
